package com.wwwarehouse.carddesk.bean.teambean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * @创建者 chenchao.
 * @创建时间 2017/11/14 11:13
 * @描述 ${TODO}
 */

public class DelayTaskBean implements Parcelable {

    /**
     * list : [{"delayTime":445184,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42138600000002054","ownerId":-1,"ownerName":""},{"delayTime":446744,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42138700000001035","ownerId":-1,"ownerName":""},{"delayTime":446864,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42138300000001025","ownerId":-1,"ownerName":""},{"delayTime":449985,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42138100000001007","ownerId":-1,"ownerName":""},{"delayTime":452265,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42137100000003229","ownerId":-1,"ownerName":""},{"delayTime":455865,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42137800000002159","ownerId":-1,"ownerName":""},{"delayTime":457665,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42137100000003207","ownerId":-1,"ownerName":""},{"delayTime":458266,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42137400000003190","ownerId":-1,"ownerName":""},{"delayTime":462107,"delayTimeCount":"5","delayTimeFormat":"超时5天","delayTimeType":"天","operationName":"注册审核","operationUkid":"42137100000003177","ownerId":-1,"ownerName":""}]
     * page : 1
     * size : 9
     * total : 105
     */

    private int page;
    private int            size;
    private int            total;
    private List<ListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * delayTime : 445184
         * delayTimeCount : 5
         * delayTimeFormat : 超时5天
         * delayTimeType : 天
         * operationName : 注册审核
         * operationUkid : 42138600000002054
         * ownerId : -1
         * ownerName :
         */

        private int delayTime;
        private String delayTimeCount;
        private String delayTimeFormat;
        private String delayTimeType;
        private String operationName;
        private String operationUkid;
        private int    ownerId;
        private String ownerName;

        public int getDelayTime() {
            return delayTime;
        }

        public void setDelayTime(int delayTime) {
            this.delayTime = delayTime;
        }

        public String getDelayTimeCount() {
            return delayTimeCount;
        }

        public void setDelayTimeCount(String delayTimeCount) {
            this.delayTimeCount = delayTimeCount;
        }

        public String getDelayTimeFormat() {
            return delayTimeFormat;
        }

        public void setDelayTimeFormat(String delayTimeFormat) {
            this.delayTimeFormat = delayTimeFormat;
        }

        public String getDelayTimeType() {
            return delayTimeType;
        }

        public void setDelayTimeType(String delayTimeType) {
            this.delayTimeType = delayTimeType;
        }

        public String getOperationName() {
            return operationName;
        }

        public void setOperationName(String operationName) {
            this.operationName = operationName;
        }

        public String getOperationUkid() {
            return operationUkid;
        }

        public void setOperationUkid(String operationUkid) {
            this.operationUkid = operationUkid;
        }

        public int getOwnerId() {
            return ownerId;
        }

        public void setOwnerId(int ownerId) {
            this.ownerId = ownerId;
        }

        public String getOwnerName() {
            return ownerName;
        }

        public void setOwnerName(String ownerName) {
            this.ownerName = ownerName;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.delayTime);
            dest.writeString(this.delayTimeCount);
            dest.writeString(this.delayTimeFormat);
            dest.writeString(this.delayTimeType);
            dest.writeString(this.operationName);
            dest.writeString(this.operationUkid);
            dest.writeInt(this.ownerId);
            dest.writeString(this.ownerName);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.delayTime = in.readInt();
            this.delayTimeCount = in.readString();
            this.delayTimeFormat = in.readString();
            this.delayTimeType = in.readString();
            this.operationName = in.readString();
            this.operationUkid = in.readString();
            this.ownerId = in.readInt();
            this.ownerName = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeList(this.list);
    }

    public DelayTaskBean() {
    }

    protected DelayTaskBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, ListBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<DelayTaskBean> CREATOR = new Parcelable.Creator<DelayTaskBean>() {
        @Override
        public DelayTaskBean createFromParcel(Parcel source) {
            return new DelayTaskBean(source);
        }

        @Override
        public DelayTaskBean[] newArray(int size) {
            return new DelayTaskBean[size];
        }
    };
}
